package ListTest;

import java.util.ArrayList;
import java.util.List;

public class studentList {
    public static void main(String[] args) {
        List<Student> students = new ArrayList<>();
        for (int i = 0; i < 3; i ++ ) {
            Student student = new Student();
            student.setName("wusihao" + i);
            student.setId(i);
            students.add(student);
        }

        Student student = new Student();
        student.setName("wsh");
        student.setId(33);
        students.add(2, student);
        students.remove(0);
        for (Student stu : students)
            System.err.println(stu);
    }
}
